package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.github.kotvertolet.youtubejextractor.models.youtube.playerResponse.PlayerStoryboardSpecRenderer;
import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class Storyboards implements Sequenceable, Serializable {

    @SerializedName("playerStoryboardSpecRenderer")
    private PlayerStoryboardSpecRenderer playerStoryboardSpecRenderer;

    public static final Sequenceable.Producer<Storyboards> CREATOR = new Producer<Storyboards>() {
        @Override
        public Storyboards createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            Storyboards storyboards = new Storyboards();
            storyboards.unmarshalling(parcel);
            return storyboards;
        }
    };



    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.playerStoryboardSpecRenderer);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.playerStoryboardSpecRenderer);
        return true;
    }

    @Override
    public String toString() {
        return "Storyboards{" +
                "playerStoryboardSpecRenderer=" + playerStoryboardSpecRenderer +
                '}';
    }

    public PlayerStoryboardSpecRenderer getPlayerStoryboardSpecRenderer() {
        return playerStoryboardSpecRenderer;
    }

    public void setPlayerStoryboardSpecRenderer(PlayerStoryboardSpecRenderer playerStoryboardSpecRenderer) {
        this.playerStoryboardSpecRenderer = playerStoryboardSpecRenderer;
    }
}
